package org.spring.aicloud;

import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.ai.ollama.OllamaChatClient;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class OllamaTest {

    @Resource
    private OllamaChatClient ollamaChatClient;

    @Test
    public void chatTest() {
        String result = ollamaChatClient.call("你是谁？");
        System.out.println(result);
    }

}
